import React from 'react';
// import { Text } from 'react-native';
import {
  Main,
  Products,
  MakePlan,
  ChooseJob,
  CompleteInfo,
  ProductDetails,
  TransferPrice,
  BankCardRecording,
  InsuranceAdvice,
  Search,
  InsuredToInform,
  MyInformation,
  SettingPortrait,
  QRCode,
  MyDetailInfo,
  AccountAndSecurity,
  ResetPassword,
  PaySuccess,
} from 'bee/containers/';

import { navOptions, BackBtn, MoreBtn } from 'bee/navigations';

export default {
  Main: {
    screen: Main,
  },
  Products: {
    screen: Products,
  },
  MakePlan: {
    screen: MakePlan,
    navigationOptions: ({ navigation }) =>
      navOptions('制定险种计划', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
        headerRight: <MoreBtn onPress={() => {}} />,
      }),
  },
  ChooseJob: {
    screen: ChooseJob,
  },
  CompleteInfo: {
    screen: CompleteInfo,
    navigationOptions: ({ navigation }) =>
      navOptions('完善信息', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
        headerRight: <MoreBtn onPress={() => {}} />,
      }),
  },
  ProductDetails: {
    screen: ProductDetails,
  },
  Search: {
    screen: Search,
    navigationOptions: {
      header: null,
    },
  },
  TransferPrice: {
    screen: TransferPrice,
    navigationOptions: ({ navigation }) =>
      navOptions('转账收费', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
        headerRight: <MoreBtn onPress={() => {}} />,
      }),
  },
  BankCardRecording: {
    screen: BankCardRecording,
    navigationOptions: ({ navigation }) =>
      navOptions('添加银行卡', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
        headerRight: <MoreBtn onPress={() => {}} />,
      }),
  },
  InsuranceAdvice: {
    screen: InsuranceAdvice,
    navigationOptions: ({ navigation }) =>
      navOptions('投保提示书', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
        headerRight: <MoreBtn onPress={() => {}} />,
      }),
  },

  PaySuccess: {
    screen: PaySuccess,
    navigationOptions: ({ navigation }) =>
      navOptions('信息提交完成', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
        headerRight: <MoreBtn onPress={() => {}} />,
      }),
  },

  MyInformation: {
    screen: MyInformation,
    navigationOptions: ({ navigation }) =>
      navOptions('我的信息', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
      }),
  },
  SettingPortrait: {
    screen: SettingPortrait,
  },
  InsuredToInform: {
    screen: InsuredToInform,
    navigationOptions: ({ navigation }) =>
      navOptions('投保告知事项', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
        headerRight: <MoreBtn onPress={() => {}} />,
      }),
  },

  QRCode: {
    screen: QRCode,
    navigationOptions: ({ navigation }) =>
      navOptions('我的二维码', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
        headerRight: <MoreBtn onPress={() => {}} />,
      }),
  },
  MyDetailInfo: {
    screen: MyDetailInfo,
    navigationOptions: ({ navigation }) =>
      navOptions('我的详细信息', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
      }),
  },
  AccountAndSecurity: {
    screen: AccountAndSecurity,
    navigationOptions: ({ navigation }) =>
      navOptions('账号与安全', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
      }),
  },
  ResetPassword: {
    screen: ResetPassword,
    navigationOptions: ({ navigation }) =>
      navOptions('重置登录密码', navOptions.TYPE_BLUE, {
        headerLeft: <BackBtn navigation={navigation} />,
      }),
  },
};
